package zf.data.tools
{
	import flash.net.LocalConnection;
	import flash.system.System;
	
	/**
	 * 内存类 
	 * @author
	 * 
	 */
	public class Memory
	{
		/**
		 * 强制内存回收 
		 * 
		 */
		public static function gc():void 
		{
			try {
			   new LocalConnection().connect('GC');
			   new LocalConnection().connect('GC');
			} catch (e:*) {}
		}
		/**
		 * 获得使用内存 
		 * @return 
		 * 
		 */
		public static function get used():uint 
		{
			return System.totalMemory;
		}
	}
}